package com.briup.cms.service.impl;

import com.briup.cms.bean.BaseLog;
import com.briup.cms.dao.extend.BaseLogExtendMapper;
import com.briup.cms.service.IBaseLogService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 日志服务层
 */
@Service
public class BaseLogServiceImpl implements IBaseLogService {
	@Autowired
	private BaseLogExtendMapper baseLogExtendMapper;

	@Override
	public PageInfo<BaseLog> pageQuery(int pageNum, int pageSize) {
		PageHelper.startPage(pageNum,pageSize,true);
		List<BaseLog> list = baseLogExtendMapper.pageQuery();
		return new PageInfo<>(list);
	}

}
